package com.sms.plateform.web.tag;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.jsp.tagext.TagSupport;

import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;

public class BaseTag extends TagSupport{
	private static final long serialVersionUID = -8447682760330453741L;
	public WebApplicationContext getWebApplicationContext(){
		HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();
		return WebApplicationContextUtils.getWebApplicationContext(request.getSession().getServletContext());
	}
}
